package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import com.njtoyo.taxi.admin.mapper.master.enums.DriverSpecialRewardRuleCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverSpecialRewardRuleType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "新增司机大红包规则")
public class CreateSpecialRewardRuleWrapper {

    @ApiModelProperty(value = "奖励类型")
    @NotNull(message = "奖励类型 不能为空")
    private DriverSpecialRewardRuleCategory category;

    @ApiModelProperty(value = "规则类型")
    @NotNull(message = "规则类型 不能为空")
    private DriverSpecialRewardRuleType ruleType;

    @ApiModelProperty(value = "司机运营区ID")
    @NotNull(message = "司机运营区ID 不能为空")
    private Long driverRegionId;

    @ApiModelProperty(value = "司机数量")
    @NotNull(message = "司机数量 不能为空")
    @Min(value = 0, message = "司机数量 最少为0")
    private Integer driverCount;

    @ApiModelProperty(value = "红包金额")
    @NotNull(message = "红包金额 不能为空")
    @Min(value = 0, message = "红包金额 最少为0")
    private BigDecimal rewardAmount;

    @ApiModelProperty(value = "开始时间,格式 Hm")
    @NotNull(message = "开始小时分钟 不能为空")
    private String rewardDistributeStartHm;

    @ApiModelProperty(value = "结束时间,格式 Hm")
    @NotNull(message = "结束小时分钟 不能为空")
    private String rewardDistributeEndHm;

    @ApiModelProperty(value = "是否启用")
    @NotNull(message = "是否启用 不能为空")
    private Boolean isActive;
}
